<template lang="pug">
  keep-alive
    kalix-table(bizKey="LiveRooms" title='直播列表' ref="kalixTable"
    v-bind:tableFields="tableFields"
    v-bind:targetURL="liveRoomsURL"
    v-bind:bizDialog="liveroomsDialog"
    v-bind:btnList="liveroomsBtnList"
    v-bind:toolbarBtnList="toolbarBtnList"
    bizSearch="liveroomsSearch")
</template>

<script type="text/ecmascript-6">
  import {LiveRoomsURL} from '../../config.toml'
  import {liveroomsConfigBtnList} from './config'
  import KalixTable from '../../../../../components/corelib/components/common/baseTable'

  export default {
    name: 'kalix-mooc-liverooms',
    components: {KalixTable},
    data() {
      return {
        liveRoomsURL: LiveRoomsURL,
        tableFields: [
          {prop: 'liveUrl', label: '直播流地址'},
          {prop: 'liveId', label: '直播间ID'},
          {prop: 'liveName', label: '直播间名称'},
          {prop: 'userId', label: '用户ID'},
          {prop: 'userName', label: '用户名称'},
          {prop: 'examine', label: '审核状态'}
        ],
        liveroomsDialog: [
          {id: 'add', dialog: 'LiveRoomsAdd'},
          {id: 'edit', dialog: 'LiveRoomsEdit'},
          {id: 'view', dialog: 'LiveRoomsView'}
        ],
        liveroomsBtnList: liveroomsConfigBtnList,
        toolbarBtnList: [
          {id: 'add', isShow: true, title: '添加', icon: 'icon-pinleizengjia', isPermission: true}
        ]
      }
    }
  }
</script>

<style scoped lang="stylus">

</style>
